package org.systemsbiology.addama.sequencing.util;

public class CData {

    CData(String k, String acc, String iso, String id, String loc, String com) {
        key = k;
        accession = acc;
        isolate = iso;
        identification = id;
        location = loc;
        comments = com;
    }

    CData() {

    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setAccession(String accession) {
        this.accession = accession;
    }

    public void setIsolate(String isolate) {
        this.isolate = isolate;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    private String key;
    private String accession;
    private String isolate;
    private String identification;
    private String location;
    private String comments;

    public String toString() {
        if (accession == null)
            accession = "";
        if (isolate == null)
            isolate = "";
        if (location == null)
            location = "";
        if (identification == null)
            identification = "";
        if (comments == null)
            comments = "";

        return (key + "\t" + accession + "\t" + isolate + "\t" + location + "\t" + identification + "\t" + comments + "\t\n");
    }
}